import GameModel from '@/models/game';
import { HttpRequest } from 'xo-web-base';

export default class GameService {
    /**
     * 列表
     * @param pageNumber
     * @param pageSize
     * @returns
     */
    static list(pageNumber?: number, pageSize?: number) {
        return HttpRequest.post<GameModel>('/mini/game/list', {
            pageNumber: pageNumber,
            pageSize: pageSize,
        });
    }

    /**
     * 新闻详情
     * @param id
     * @returns
     */
    static info(id: any) {
        return HttpRequest.post<GameModel>('/mini/game/info', {
            id: id,
        });
    }
}